package com.hy.medicine;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("cart_item")
@ApiModel(value = "购物车项目")
public class CartItem {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("购物车项目ID")
    private Long id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("药品ID")
    private Long medicineId;

    @ApiModelProperty("药品名称")
    private String medicineName;

    @ApiModelProperty("药品图片")
    private String imageUrl;

    @ApiModelProperty("药品规格")
    private String specification;

    @ApiModelProperty("药品剂型")
    private String dosageForm;

    @ApiModelProperty("单价")
    private BigDecimal price;

    @ApiModelProperty("数量")
    private Integer quantity;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}
